import request from '@/utils/request'

// 查询临床招募疾病列表
export function listClinicalDisease(query) {
  return request({
    url: '/ydz/clinicalDisease/list',
    method: 'get',
    params: query
  })
}

// 查询临床招募疾病详细
export function getClinicalDisease(id) {
  return request({
    url: '/ydz/clinicalDisease/' + id,
    method: 'get'
  })
}

// 新增临床招募疾病
export function addClinicalDisease(data) {
  return request({
    url: '/ydz/clinicalDisease',
    method: 'post',
    data: data
  })
}

// 修改临床招募疾病
export function updateClinicalDisease(data) {
  return request({
    url: '/ydz/clinicalDisease',
    method: 'put',
    data: data
  })
}

// 删除临床招募疾病
export function delClinicalDisease(id) {
  return request({
    url: '/ydz/clinicalDisease/' + id,
    method: 'delete'
  })
}
